package logic

import (
	"context"

	"go-zero-demo/apps/user/cmd/rpc/internal/svc"
	"go-zero-demo/apps/user/cmd/rpc/pb"

	"github.com/zeromicro/go-zero/core/logx"
)

type RegisterPhoneLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewRegisterPhoneLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RegisterPhoneLogic {
	return &RegisterPhoneLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *RegisterPhoneLogic) RegisterPhone(in *pb.RegisterPhoneReq) (*pb.RegisterUserResp, error) {
	// todo: add your logic here and delete this line

	return &pb.RegisterUserResp{}, nil
}
